﻿@using CodeCamp.Models.Sessions
@using CodeCamp.Models.Shared
@using CodeCamp.Infrastructure.Extensions
@model SessionsViewModel
@{
    Layout = "~/Views/Shared/_LayoutWideSimple.cshtml";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Unscheduled Sessions");
    }
    else
    {
        ViewBag.Title = "Code Camp | Unscheduled Sessions";
    }
}
@section headaddon {
<link href="@Url.Content("~/Content/PagedList.css")" rel="stylesheet" type="text/css" />

<style>
table
{
    border-collapse: collapse;
    border: solid 1px;
    margin: 0;
}
td.ui-nowrap
{
    white-space: nowrap;
}
td.datetime-nowrap
{
    white-space:nowrap;
}
tr.grid-alt-row
{
}
th
{
    padding: 4px;
}
td 
{
    padding: 4px;
    text-align: left;
}
#content
{
    width: 950px;
    overflow:scroll;
}
</style>
}

<h1 class="title">Unscheduled Sessions at @Model.EventDisplayName</h1>
<h3>Non-Public Page</h3>
<h3>@Model.EventStartDate.ToString("MMMM yyyy")</h3>
<h4>@Html.ActionLink("Session Grid", "SessionGrid", "Schedule", new { eventName=Model.EventShortName}, null)</h4>

@if (Model.SearchResultsViewModel != null)
{
    @Html.Partial("PartialViews/SessionListPartial", Model.SearchResultsViewModel)
}